<html>
<head>
	<title>Pagination</title>
	<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
	<style type="text/css">
		 body {
       font: small/1.4em Verdana, Arial, Helvetica, serif;
		}
		 h1 {
       font-size: 150%;
    }
	 table {
       border-collapse: collapse;
       border: 1px solid #777;
    }

    th, td {
       padding: 10px;
       border: 1px solid #777;
    }

    th {
       text-align: left;
       background-color: #abc;
    }
	</style>
</head>
<body>
<h1>Pagination sample</h1>        
<?php 
	$this->load->helper('form');
	$attributes = array('name' => 'menu_form');
	echo form_open("welcome/index",$attributes);	
	$js = 'onChange="document.menu_form.submit();"';
	$selected_option = $dm_id;
	$options = array("welcome_model" => "welcome_model","w1_model" => "w1_model");
	echo form_dropdown('dm', $options,$selected_option,$js);
	echo $tbl;
	echo $links;
	echo form_submit('', 'Change');
	echo form_close();
?>
</body>
</html>	
